Maple Tool1.mws

Maple Tool 1

This tool is for use with Activity 2 in section 10.2.

>   

>    f:=x->sin(x);

f := proc (x) options operator, arrow; sin(x) end proc

>    P1:=x->x;

>    P3:=x->x-x^3/6;

>    P5:=x->x-x^3/6+x^5/120;

P1 := proc (x) options operator, arrow; x end proc

P3 := proc (x) options operator, arrow; x-1/6*x^3 end proc

P5 := proc (x) options operator, arrow; x-1/6*x^3+1/120*x^5 end proc

>    plot([f(x),P1(x),P3(x),P5(x)], x=-2*Pi..2*Pi, color=[red,green, blue, brown], thickness=2, view=[-2*Pi..2*Pi,-3..3], scaling=constrained);

[Maple Plot]

>   

>    E1:=x->f(x)-P1(x);

>    E3:=x->f(x)-P3(x);

>    E5:=x->f(x)-P5(x);

E1 := proc (x) options operator, arrow; f(x)-P1(x) end proc

E3 := proc (x) options operator, arrow; f(x)-P3(x) end proc

E5 := proc (x) options operator, arrow; f(x)-P5(x) end proc

>   

>    plot([E1(x),E3(x),E5(x)], x=-Pi/2..Pi/2, color=[green, blue, brown], thickness=2, view=[-Pi/2..Pi/2,-0.05..0.05]);

[Maple Plot]

>   

>